package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 查看内容对象 xg_public_service_content
 * 
 * @author coderChen
 * @date 2024-01-09
 */
public class PublicServiceContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 主题 */
    @Excel(name = "主题")
    private String serviceTheme;

    /** 内容 */
    @Excel(name = "内容")
    private String serviceContent;

    /** 上传教师 */
    @Excel(name = "上传教师")
    private String createTeacher;

    /** 状态 */
    @Excel(name = "状态")
    private String contentStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setServiceTheme(String serviceTheme) 
    {
        this.serviceTheme = serviceTheme;
    }

    public String getServiceTheme() 
    {
        return serviceTheme;
    }
    public void setServiceContent(String serviceContent) 
    {
        this.serviceContent = serviceContent;
    }

    public String getServiceContent() 
    {
        return serviceContent;
    }
    public void setCreateTeacher(String createTeacher) 
    {
        this.createTeacher = createTeacher;
    }

    public String getCreateTeacher() 
    {
        return createTeacher;
    }
    public void setContentStatus(String contentStatus) 
    {
        this.contentStatus = contentStatus;
    }

    public String getContentStatus() 
    {
        if(contentStatus == null){
            return "待审核";
        }else{
            return contentStatus;
        }
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serviceTheme", getServiceTheme())
            .append("serviceContent", getServiceContent())
            .append("createTeacher", getCreateTeacher())
            .append("createTime", getCreateTime())
            .append("contentStatus", getContentStatus())
            .append("createBy", getCreateBy())
            .toString();
    }
}
